package cn.skcks.shirospringboot.service;

import cn.skcks.shirospringboot.dao.UserDao;
import cn.skcks.shirospringboot.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

	private UserDao userDao;

	@Autowired
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User selectUserByName(String name) {
		return userDao.selectUserByName(name);
	}
}